package com.coral.login.module.maya.ios.result;

import com.coral.login.common.result.IResult;
import com.coral.login.module.core.support.ErrorCodeEnum;
import com.coral.login.module.core.support.ExchargeResult;

public class MayaIOSExchargeResult extends ExchargeResult{
	
	private String msg;

	public MayaIOSExchargeResult(int code, String msg) {
		super(code, msg);
		this.msg = msg;
	}
	
	public MayaIOSExchargeResult(ErrorCodeEnum eEnum) {
		super(eEnum);
		this.msg = eEnum.getDesc();
	}

	public String getMsg() {
		return msg;
	}

	/**
	 * 构造消息
	 * @return
	 */
	public static IResult build(int code, String msg) {
		return new MayaIOSExchargeResult(code, msg);
	}
	
	
}
